﻿using System.IO;

namespace OpenLS.Spreadsheet.Formats.Biff.Records.Styling
{
    abstract class  XFPropValue
    {

        public abstract int Length { get; }

        public abstract void Read (BinaryReader reader, int length);

        public abstract void Write(BinaryWriter writer);
    }
    class XFFixedPropValue: XFPropValue
    {
               private byte[] _data;
 public override int Length
        {
            get { return _data.Length; }
        }

        public override void Read(BinaryReader reader, int length)
        {
            this._data = reader.ReadBytes(length);
        }

        public override void Write(BinaryWriter writer)
        {
            writer.Write(_data);
        }
        
    }
}